package com.dfcj.oauth2security.entity;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.util.Date;

@Data
public class Role  implements GrantedAuthority {
    private String roleId;

    private String parentRoleId;

    private String roleName;

    private Date createTime;

    private Date lastModifyTime;

    private String mender;

    private String description;

    @Override
    public String getAuthority(){
        return roleName;
    }
}